package com.example.stlink.model.domain;

import android.content.Intent;

import androidx.annotation.NonNull;

import java.util.Date;

public class User {

    //用户所创建应用的id
    private String appKey;

    //头像
    private String avatar;

    //院校名
    private String collegeName;

    //创建时间
    private Long createTime;

    //邮箱
    private String email;

    //性别
    private Boolean gender;

    //主键id
    private Long id;

    //学/工号
    private Long idNumber;

    //入学时间
    private Long inSchoolTime;

    //上次修改时间
    private Long lastUpdateTime;

    //手机号
    private String phone;

    //真实姓名
    private String realName;

    //角色【0：学生，1：教师】
    private Integer roleId;

    //用户名
    private String userName;

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getCollegeName() {
        return collegeName;
    }

    public void setCollegeName(String collegeName) {
        this.collegeName = collegeName;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(Long idNumber) {
        this.idNumber = idNumber;
    }

    public Long getInSchoolTime() {
        return inSchoolTime;
    }

    public void setInSchoolTime(Long inSchoolTime) {
        this.inSchoolTime = inSchoolTime;
    }

    public Long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @NonNull
    @Override
    public String toString() {
        return "User{" +
                "appKey='" + appKey + '\'' +
                ", avatar='" + avatar + '\'' +
                ", collegeName='" + collegeName + '\'' +
                ", createTime=" + createTime +
                ", email='" + email + '\'' +
                ", gender=" + gender +
                ", id=" + id +
                ", idNumber=" + idNumber +
                ", inSchoolTime=" + inSchoolTime +
                ", lastUpdateTime=" + lastUpdateTime +
                ", phone='" + phone + '\'' +
                ", realName='" + realName + '\'' +
                ", roleId=" + roleId +
                ", userName='" + userName + '\'' +
                '}';
    }
}
